/*
 * @lc app=leetcode.cn id=80 lang=javascript
 *
 * [80] 删除排序数组中的重复项 II
 */

// @lc code=start
/**
 * @param {number[]} nums
 * @return {number}
 */
var removeDuplicates = function(nums) {
    let slowindex = 0;
    for(let fastindex = 1; fastindex < nums.length; fastindex++){
        while(nums[slowindex]===nums[fastindex]){
            fastindex++;
        }
        if(fastindex-slowindex>=2){
            
        }
    }
};
var arr = [1,1,1,2,2,3,3,3];
console.log(removeDuplicates(arr));
// @lc code=end

